<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<table width="100%" border="1">
<c:if test="${!empty list && param.areaCode != ''}">
 <tr>
    <td class="nohover" colspan="10">
    <input class="buttondownload" type="button" value="下载" onclick="window.location.href='<%=request.getContextPath()%>/EmployerContractInfo.do?method=unitContractStatisticsXls&areaCode=${param.areaCode}&year=${param.year}&type=${param.type}'">
    </td>
 </tr>
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>（企业）签订劳动合同情况统计表</b>
    </td>
 </tr>
  <tr>
    <td width="583" height="30" align="left" valign="center" class="nohover" colspan="6">填报单位名称：${organ.supOrganName}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 ${param.year}年
 <c:if test="${param.type == '0'}">第一季度</c:if><c:if test="${param.type == '1'}">第二季年</c:if><c:if test="${param.type == '2'}">第三季度</c:if><c:if test="${param.type == '3'}">第四季度</c:if>
 </td>
 </tr>
  <tr>
    <td width="150">类别</td>
    <td width="130">企业总数</td>
    <td width="130">职工总数</td>
    <td width="130">签订劳动合同企业数</td>
    <td width="130">签订劳动合同职工数</td>
    <td width="130">劳动合同签订率</td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <c:set var="v1" scope="page" value="${v1 + prod[1]}"/>
  <c:set var="v2" scope="page" value="${v2 + prod[2]}"/>
  <c:set var="v3" scope="page" value="${v3 + prod[3]}"/>
  <c:set var="v4" scope="page" value="${v4 + prod[4]}"/>
  </c:forEach>
   <tr>
    <td>合计</td>
    <td>${v1}</td>
    <td>${v2}</td>
    <td>${v3}</td>
    <td>${v4}</td>
    <td><c:if test="${v1 != '0'}"><fmt:formatNumber value="${v3/v1*100}" pattern="#.0#"/></c:if></td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${prod[0]}</td>
    <td>${prod[1]}</td>
    <td>${prod[2]}</td>
    <td>${prod[3]}</td>
	<td>${prod[4]}</td>
	<td><c:if test="${prod[1] != '0'}"><fmt:formatNumber value="${prod[3]/prod[1]*100}" pattern="#.0#"/></c:if></td>
  </tr>
  </c:forEach>
  
</c:if>
<c:if test="${empty list || param.areaCode == ''}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>请选择统计条件！</b>
    </td>
 </tr>
</c:if>
</table>
</body>
</html>
